﻿<Window x:Class="Factonomy.AzureUtility.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Factonomy.AzureUtility.Controls" 
    Title="Windows Azure Storage Utility" Height="768" Width="1024" WindowState="Normal" Icon="/Factonomy.AzureUtility;component/Resources/App.ico">
    <Grid>
        <DockPanel Margin="0" Name="uiDockPanel">
            <Menu Height="22" Name="uiMainMenu" Width="auto" DockPanel.Dock="Top" >
                <MenuItem Header="File" Name="uiMenuFile">
                    <MenuItem Header="Close" Name="uiMenuClose" Click="CloseWindow"/>
                </MenuItem>
                <MenuItem Header="Tools" Name="uiMenuTools">
                    <MenuItem Header="Settings" Name="uiMenuSettings" Click="OpenSettings" />
                </MenuItem>
                <MenuItem Header="Accounts" Name="uiMenuAccounts">
                    <MenuItem Header="Refresh" Name="uiMenuAccountsRefresh" Click="RefreshAccounts"  />
                    <MenuItem Header="Add" Name="uiMenuAccountsAdd" Click="AddAccount"  />
                    <MenuItem Header="Edit" Name="uiMenuAccountsEdit" Click="EditAccount" />
                    <MenuItem Header="Remove" Name="uiMenuAccountsRemove" Click="RemoveAccount" />
                </MenuItem>
                <MenuItem Header="Help" Name="uiMenuHelp">
                    <MenuItem Header="About" Name="uiMenuAbout" Click="OpenHelpAbout"/>
                </MenuItem>
                <!--<MenuItem Header="Blobs" Name="uiMenuBlobStorage">
                    <MenuItem Header="Containers" Name="uiMenuAddContainer">
                        <MenuItem Header="Add" Name="uiMenuContainersAdd" Click="AddContainer" IsEnabled="False" />
                        <MenuItem Header="Delete" Name="uiMenuContainersDelete" Click="DeleteContainer" IsEnabled="False" />
                     </MenuItem>
                    <MenuItem Header="Add.." Name="uiMenuBlobsAdd" Click="AddBlob" IsEnabled="False" />
                </MenuItem>-->
            </Menu>
            
            <StatusBar Height="23" Width="auto" Name="uiStatusBar" DockPanel.Dock="Bottom">
                <StatusBarItem>
                   <TextBlock Name="uiStatusText">Ready</TextBlock>
                </StatusBarItem>
            </StatusBar>
            <local:InfoPanel DockPanel.Dock="Bottom" Height="100" Width="auto" x:Name="uiInfoPanel" />
            <Grid Name="grid1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="300" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>
                
                <GridSplitter Grid.Column="0" HorizontalAlignment="Right" Width="4" />
                
                <DockPanel Grid.Column="0" Name="uiDocPanelLeft" Margin="0 0 4 0">
                        <!--<DockPanel DockPanel.Dock="Top" Height="40" Name="uiDocPanelLeft2" Background="SlateGray">
                            <Image Name="uiCollapseMainPanelImage" DockPanel.Dock="Right" Width="16" MouseDown="uiCollapseMainPanel_MouseDown" Margin="0 4 4 0"/>
                        <Image Name="uiHeaderIcon" Width="32" Margin="5" Height="32" DockPanel.Dock="Left" />
                        <TextBlock Height="21" Name="textBlock1" Text="Accounts" DockPanel.Dock="Left" Margin="-2" Foreground="White" FontSize="15" FontWeight="Bold" />
                    </DockPanel>-->
                    <local:AzureTreeView x:Name="uiTree" Width="{Binding ElementName=uiDocPanelLeft,Path=ActualWidth}" Height="{Binding ElementName=uiDocPanelLeft,Path=ActualHeight}"/>
                </DockPanel>
                
                <DockPanel Grid.Column="1" Name="uiDockPanelCentre">
                    <Grid Name="uiCentreGrid" >
                        <local:ViewBlobControl Visibility="Hidden" x:Name="uiViewBlobControl" Width="{Binding ElementName=uiCentreGrid,Path=ActualWidth}" Height="{Binding ElementName=uiCentreGrid,Path=ActualHeight}"  />
                    </Grid>
                </DockPanel>
                
            </Grid>
            
        </DockPanel>
    </Grid>
</Window>
